<!DOCTYPE html>
<html>

	<head>
		<meta charset=utf-8>
		<meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>金帝期货</title>
		<meta name=description content="" />
		<meta name=keywords content="融创金融投资有限公司" />
		<script data-pagespeed-no-defer>
			//<![CDATA[
			(function() {
				function d(b) {
					var a = window;
					if(a.addEventListener) a.addEventListener("load", b, !1);
					else if(a.attachEvent) a.attachEvent("onload", b);
					else {
						var c = a.onload;
						a.onload = function() {
							b.call(this);
							c && c.call(this)
						}
					}
				}
				var p = Date.now || function() {
					return +new Date
				};
				window.pagespeed = window.pagespeed || {};
				var q = window.pagespeed;

				function r() {
					this.a = !0
				}
				r.prototype.c = function(b) {
					b = parseInt(b.substring(0, b.indexOf(" ")), 10);
					return !isNaN(b) && b <= p()
				};
				r.prototype.hasExpired = r.prototype.c;
				r.prototype.b = function(b) {
					return b.substring(b.indexOf(" ", b.indexOf(" ") + 1) + 1)
				};
				r.prototype.getData = r.prototype.b;
				r.prototype.f = function(b) {
					var a = document.getElementsByTagName("script"),
						a = a[a.length - 1];
					a.parentNode.replaceChild(b, a)
				};
				r.prototype.replaceLastScript = r.prototype.f;
				r.prototype.g = function(b) {
					var a = window.localStorage.getItem("pagespeed_lsc_url:" + b),
						c = document.createElement(a ? "style" : "link");
					a && !this.c(a) ? (c.type = "text/css", c.appendChild(document.createTextNode(this.b(a)))) : (c.rel = "stylesheet", c.href = b, this.a = !0);
					this.f(c)
				};
				r.prototype.inlineCss = r.prototype.g;
				r.prototype.h = function(b, a) {
					var c = window.localStorage.getItem("pagespeed_lsc_url:" + b + " pagespeed_lsc_hash:" + a),
						f = document.createElement("img");
					c && !this.c(c) ? f.src = this.b(c) : (f.src = b, this.a = !0);
					for(var c = 2, k = arguments.length; c < k; ++c) {
						var g = arguments[c].indexOf("=");
						f.setAttribute(arguments[c].substring(0, g), arguments[c].substring(g + 1))
					}
					this.f(f)
				};
				r.prototype.inlineImg = r.prototype.h;

				function t(b, a, c, f) {
					a = document.getElementsByTagName(a);
					for(var k = 0, g = a.length; k < g; ++k) {
						var e = a[k],
							m = e.getAttribute("data-pagespeed-lsc-hash"),
							h = e.getAttribute("data-pagespeed-lsc-url");
						if(m && h) {
							h = "pagespeed_lsc_url:" + h;
							c && (h += " pagespeed_lsc_hash:" + m);
							var l = e.getAttribute("data-pagespeed-lsc-expiry"),
								l = l ? (new Date(l)).getTime() : "",
								e = f(e);
							if(!e) {
								var n = window.localStorage.getItem(h);
								n && (e = b.b(n))
							}
							e && (window.localStorage.setItem(h, l + " " + m + " " + e), b.a = !0)
						}
					}
				}

				function u(b) {
					t(b, "img", !0, function(a) {
						return a.src
					});
					t(b, "style", !1, function(a) {
						return a.firstChild ? a.firstChild.nodeValue : null
					})
				}
				q.i = function() {
					if(window.localStorage) {
						var b = new r;
						q.localStorageCache = b;
						d(function() {
							u(b)
						});
						d(function() {
							if(b.a) {
								for(var a = [], c = [], f = 0, k = p(), g = 0, e = window.localStorage.length; g < e; ++g) {
									var m = window.localStorage.key(g);
									if(!m.indexOf("pagespeed_lsc_url:")) {
										var h = window.localStorage.getItem(m),
											l = h.indexOf(" "),
											n = parseInt(h.substring(0, l), 10);
										if(!isNaN(n))
											if(n <= k) {
												a.push(m);
												continue
											} else if(n < f || !f) f = n;
										c.push(h.substring(l + 1, h.indexOf(" ", l + 1)))
									}
								}
								k = "";
								f && (k = "; expires=" + (new Date(f)).toUTCString());
								document.cookie =
									"_GPSLSC=" + c.join("!") + k;
								g = 0;
								for(e = a.length; g < e; ++g) window.localStorage.removeItem(a[g]);
								b.a = !1
							}
						})
					}
				};
				q.localStorageCacheInit = q.i;
			})();
			pagespeed.localStorageCacheInit();
			//]]>
		</script>

		<script type="text/javascript" src="http://html.xdf33dd.360www.net/weixin/js/jquery.min.js"></script>
		<script type="text/javascript">
			//<![CDATA[
			(function($) {
				$.cookie = function(key, value, options) {
					if(arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
						options = $.extend({}, options);
						if(value === null || value === undefined) {
							options.expires = -1;
						}
						if(typeof options.expires === 'number') {
							var days = options.expires,
								t = options.expires = new Date();
							t.setDate(t.getDate() + days);
						}
						value = String(value);
						return(document.cookie = [encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : ''].join(''));
					}
					options = value || {};
					var decode = options.raw ? function(s) {
						return s;
					} : decodeURIComponent;
					var pairs = document.cookie.split('; ');
					for(var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) {
						if(decode(pair[0]) === key) return decode(pair[1] || '');
					}
					return null;
				};
			})(jQuery);
			//]]>
		</script>
		<script type="text/javascript" src="http://html.xdf33dd.360www.net/layer/layer.js"></script>

		<script type="text/javascript"></script>
	</head>

	<body>
		<noscript>
			<meta HTTP-EQUIV="refresh" content="0;url='http://192.168.0.10:6005/Content/index/qihuo_kline/prono/AU1806/id/7/catid/14/device/weixin.html?PageSpeed=noscript'" />
			<style>
				/*<!--table,div,span,font,p{display:none} -->*/
			</style>
			<div style="display:block">
				Please click 
				<a href="http://192.168.0.10:6005/Content/index/qihuo_kline/prono/AU1806/id/7/catid/14/device/weixin.html?PageSpeed=noscript">
					here
				</a>
				 if you are not redirected within a few seconds.
			</div>
		</noscript>
		<style>
			body {
				background: #fff
			}
			
			.mui-content {
				background-color: transparent
			}
			
			.tm-trading-total~.mui-content {}
		</style>
		<script type="text/javascript" src="http://html.xdf33dd.360www.net/default/js/echarts-all-3.js"></script>
		<script type="text/javascript">
			var prono = 'AU1806';
			var catid = '14';
			var shoushu = 0;
			var app = {};
			var date = [];
			var data = [];
		</script>
		<div id=main style="width:100%;height:200px;margin:0 auto;">
		</div>
		<script type="text/javascript">
			var data0 = splitData([
				["02-01", "276.10", "276.05", "275.60", "276.80"],
				["02-02", "275.85", "276.40", "275.60", "276.85"],
				["02-05", "276.15", "274.00", "273.75", "276.50"],
				["02-06", "274.30", "276.00", "273.80", "277.40"],
				["02-07", "274.95", "272.30", "271.65", "274.95"],
				["02-08", "271.65", "271.70", "270.35", "272.15"],
				["02-09", "272.30", "273.05", "271.80", "274.50"],
				["02-12", "271.85", "272.90", "270.85", "273.10"],
				["02-13", "272.70", "274.25", "272.65", "274.35"],
				["02-14", "274.65", "276.10", "273.55", "276.15"],
				["02-22", "274.70", "273.65", "273.30", "274.80"],
				["02-23", "274.00", "274.60", "274.00", "275.00"],
				["02-26", "275.05", "275.85", "274.10", "275.95"],
				["02-27", "275.25", "274.40", "274.05", "275.60"],
				["02-28", "274.35", "272.05", "271.70", "274.40"],
				["05-01", "272.35", "271.70", "271.35", "272.75"],
				["05-02", "270.95", "272.70", "270.70", "273.05"],
				["05-05", "273.30", "273.65", "272.45", "273.90"],
				["05-06", "273.35", "273.30", "272.35", "273.50"],
				["05-07", "273.70", "274.50", "273.60", "275.30"],
				["05-08", "274.00", "274.00", "273.15", "274.35"],
				["05-09", "273.75", "272.55", "272.25", "274.15"],
				["05-12", "272.40", "272.50", "271.45", "273.25"],
				["06-01", "271.80", "272.30", "271.65", "272.90"],
				["06-02", "273.00", "272.75", "271.90", "273.60"],
				["06-05", "272.20", "272.50", "272.00", "272.85"],
				["06-06", "271.75", "271.35", "270.90", "271.90"],
				["06-07", "271.50", "270.05", "269.65", "271.60"],
				["06-08", "270.55", "271.20", "270.30", "271.50"],
				["06-09", "270.45", "271.15", "269.90", "271.30"],
				["06-10", "271.60", "273.50", "271.55", "274.25"],
				["06-11", "274.20", "276.50", "273.30", "276.55"],
				["06-12", "276.90", "276.15", "275.85", "277.25"],
				["06-21", "275.45", "275.80", "275.35", "276.65"],
				["06-22", "274.30", "274.20", "273.95", "275.15"],
				["06-23", "273.45", "271.05", "270.95", "273.70"],
				["06-25", "271.00", "271.55", "270.85", "271.60"],
				["06-26", "271.65", "271.75", "271.30", "272.35"],
				["06-27", "272.50", "273.75", "272.30", "274.60"],
				["06-28", "273.35", "273.40", "271.60", "273.50"],
				["06-29", "273.00", "272.55", "272.40", "273.20"],
				["07-01", "273.35", "272.70", "272.40", "274.15"],
				["07-02", "273.35", "274.30", "272.75", "274.35"],
				["07-03", "275.90", "275.20", "274.35", "276.80"],
				["07-05", "274.40", "273.15", "272.65", "274.65"],
				["07-06", "273.20", "274.25", "272.90", "274.90"],
				["07-08", "274.25", "274.65", "273.85", "274.85"],
				["07-09", "273.15", "274.50", "273.05", "274.75"],
				["07-10", "275.60", "275.20", "274.55", "275.80"],
				["07-11", "274.35", "274.55", "273.50", "274.75"],
				["07-12", "275.35", "273.55", "273.50", "274.75"]
			]);
			$(function() {
				var wheight = $(window).height();
				$('#main').height(wheight - 20);
				var myChart = echarts.init(document.getElementById('main'));
				var apps = {};
				option = {
					tooltip: {
						trigger: 'axis',
						axisPointer: {
							type: 'cross',
							label: {
								show: true,
								precision: '2',
							}
						},
						backgroundColor: 'rgba(245, 245, 245, 0.8)',
						borderWidth: 1,
						borderColor: '#ccc',
						padding: 10,
						textStyle: {
							color: '#000'
						},
						position: function(pos, params, el, elRect, size) {
							var obj = {
								top: 10
							};
							obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 30;
							return obj;
						},
						label: {
							backgroundColor: '#000',
						},
						formatter: function(param) {
							openprice = parseFloat(param[0].data[1]);
							closeprice = parseFloat(param[0].data[2]);
							lowprice = parseFloat(param[0].data[3]);
							highprice = parseFloat(param[0].data[4]);
							return ['时间: <font style="font-size:12px;">' + param[0].name + '</font><br/>', '开盘价: ' + openprice.toFixed(2) + '<br/>', '收盘价: ' + closeprice.toFixed(2) + '<br/>', '最低价: ' + lowprice.toFixed(2) + '<br/>', '最高价: ' + highprice.toFixed(2) + '<br/>'].join('');
						},
						extraCssText: 'width: 200px'
					},
					grid: {
						borderColor: '#ccc',
						left: 10,
						right: 10,
						top: 10,
						bottom: 20
					},
					xAxis: {
						type: 'category',
						data: data0.categoryData,
						scale: true,
						boundaryGap: false,
						axisLine: {
							onZero: false
						},
						splitNumber: 20,
						splitLine: {
							lineStyle: {
								color: ['#eee', '#eee'],
								opacity: 0.5
							}
						},
						axisPointer: {
							label: {
								formatter: function(params) {
									var seriesValue = (params.seriesData[0] || {}).value;
									return params.value + (seriesValue != null ? '\n' + echarts.format.addCommas(seriesValue) : '');
								},
								backgroundColor: '#000',
							}
						},
						nameGap: 0,
						boundaryGap: false,
						axisTick: {
							show: false,
						},
						axisLine: {
							show: true,
							length: 0,
							lineStyle: {
								color: '#eee',
							}
						},
						axisLabel: {
							show: true,
							interval: function(index, value) {
								if(index % 5 == 0) return true;
								return false;
							},
							textStyle: {
								color: '#999'
							},
							margin: 4
						},
						min: 'dataMin',
						max: 'dataMax'
					},
					yAxis: {
						scale: true,
						splitLine: {
							show: true,
							lineStyle: {
								color: ['#eeeeee'],
								type: 'dotted',
							}
						},
						axisLabel: {
							show: false,
							textStyle: {
								color: '#FF0000',
								baseline: 'bottom',
							},
							margin: 8,
						},
						splitNumber: 6,
						axisLine: {
							show: false,
						},
						axisTick: {
							show: false,
						},
					},
					dataZoom: [{
						type: 'inside',
						xAxisIndex: [0],
						start: 45,
						end: 100
					}],
					series: [{
						name: 'K线',
						type: 'candlestick',
						data: data0.values,
						itemStyle: {
							normal: {
								color: '#ff4c52',
								color0: '#1aaa0f',
								borderColor: '#ff4c52',
								borderColor0: '#1aaa0f'
							}
						},
						tooltip: {
							formatter: function(param) {
								openprice = param.data[0];
								closeprice = param.data[1];
								lowprice = param.data[2];
								highprice = param.data[3];
								return ['时间: <font style="font-size:12px;">' + param.name + '</font><br/>', '开盘价: ' + openprice.toFixed(2) + '<br/>', '收盘价: ' + closeprice.toFixed(2) + '<br/>', '最低价: ' + lowprice.toFixed(2) + '<br/>', '最高价: ' + hightprice.toFixed(2) + '<br/>'].join('');
							}
						}
					}, {
						name: 'MA5',
						type: 'line',
						data: calculateMA(5),
						smooth: true,
						lineStyle: {
							normal: {
								color: '#f2cfa9'
							}
						}
					}, {
						name: 'MA10',
						type: 'line',
						data: calculateMA(10),
						smooth: true,
						lineStyle: {
							normal: {
								color: '#687cd5'
							}
						}
					}, {
						name: 'MA20',
						type: 'line',
						data: calculateMA(20),
						smooth: true,
						lineStyle: {
							normal: {
								color: '#e9837e'
							}
						}
					}]
				};
				myChart.setOption(option);
			})

			function splitData(rawData) {
				var categoryData = [];
				var values = []
				for(var i = 0; i < rawData.length; i++) {
					categoryData.push(rawData[i].splice(0, 1)[0]);
//					console.log(rawData[i]);
					values.push(rawData[i])
				}
				return {
					categoryData: categoryData,
					values: values
				};
			}

			function calculateMA(dayCount) {
				var result = [];
				for(var i = 0, len = data0.values.length; i < len; i++) {
					if(i < dayCount) {
						result.push('-');
						continue;
					}
					var sum = 0;
					for(var j = 0; j < dayCount; j++) {
						sum += parseFloat(data0.values[i - j][1]);
					}
					result.push(sum / dayCount);
				}
				return result;
			}
		</script>